<div id="checkout">
<h1><%= Cart.l_attr('longer name') %></h1>
<% if @cart.cart_items.size == 0 %>
<p>
	You have not added any items to your cart yet.
</p>
<% else %>
<table>
	<tr class="head">
		<td width="200"><%=Cart.l_attr('item').capitalize %></td>
		<td width="90" align="center"><%=Cart.l_attr('quantity').capitalize%></td>
		<td width="100"  align="center"><%=Cart.l_attr('price').capitalize%></td>
		<td width="90"  align="right"><%=Cart.l_attr('total price')%></td>
		<td width="90"></td>
	</tr>
<% number = 1
%>
<% for item in @cart.cart_items %>
<tr>
	<td><a href="/catalogue/show/<%=item.artwork_id%>"><%=(Artwork.find(item.artwork_id)).name%></a></td>
	<td align="center"><%= item.amount %></td>
	<td align="center">$<%= Cart.to_dollar_amount(item.price) %></td>
	<td align="right">$<%=Cart.to_dollar_amount(item.price*item.amount)%></td>
	<td align="right"><%= remove_artwork_link("Remove", item.artwork_id) %></td>
	<% number = number + 1 %>
</tr>
<% end %>
<tr class="bottom">
	<td>Total</td>
	<td colspan="3" align="right"><span id="cart_total_price"><%= Cart.l_attr('total') %>: $<%= Cart.to_dollar_amount(@cart.total_price) %></span></td>
</tr>
</table>
<br>
<input type="submit" onclick="javascript: window.location='/checkout';" value="<%= Cart.l_attr("checkout") %>" /> or <%= clear_cart_link %>
<% end %>
</div>